package com.example.gty.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.example.gty.utils.BaseUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ExcelTarget("student")
public class Student  implements Serializable {
    @Id
    @Column(name = "SNO")
    @Excel(name = "学号")
    private String sno;

    @Column(name = "SNAME")
    @Excel(name = "姓名")
    private String sname;

    @Column(name = "IMG")
    @Excel(name = "头像")
    private String img;

    @Column(name = "SEX")
    @Excel(name = "性别")
    private String sex;

    @Column(name = "CCLASS")
    @Excel(name = "班级")
    private String cclass;

    @Column(name = "MAJOR")
    @Excel(name = "专业")
    private String major;

    @Column(name = "TEL")
    @Excel(name = "电话")
    private String tel;

    @Column(name = "COLLEGE")
    @Excel(name = "学院")
    private String college;

    @Column(name = "AGE")
    @Excel(name = "年龄")
    private Integer age;

    @Column(name = "CREATE_TIME")
    @Excel(name = "修改时间",format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * @return SNO
     */
    public String getSno() {
        return sno;
    }

    /**
     * @param sno
     */
    public void setSno(String sno) {
        this.sno = sno;
    }

    /**
     * @return SNAME
     */
    public String getSname() {
        return sname;
    }

    /**
     * @param sname
     */
    public void setSname(String sname) {
        this.sname = sname;
    }

    /**
     * @return IMG
     */
    public String getImg() {
        return img;
    }

    /**
     * @param img
     */
    public void setImg(String img) {
        this.img = img;
    }

    /**
     * @return SEX
     */
    public String getSex() {
        return sex;
    }

    /**
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * @return CCLASS
     */
    public String getCclass() {
        return cclass;
    }

    /**
     * @param cclass
     */
    public void setCclass(String cclass) {
        this.cclass = cclass;
    }

    /**
     * @return MAJOR
     */
    public String getMajor() {
        return major;
    }

    /**
     * @param major
     */
    public void setMajor(String major) {
        this.major = major;
    }

    /**
     * @return TEL
     */
    public String getTel() {
        return tel;
    }

    /**
     * @param tel
     */
    public void setTel(String tel) {
        this.tel = tel;
    }

    /**
     * @return COLLEGE
     */
    public String getCollege() {
        return college;
    }

    /**
     * @param college
     */
    public void setCollege(String college) {
        this.college = college;
    }

    /**
     * @return AGE
     */
    public Integer getAge() {
        return age;
    }

    /**
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * @return CREATE_TIME
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}